package com.zc.controller.zjb;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZjbServiceImpl implements ZjbService {
    @Autowired
    ZjbDao zjbDao;

    @Override
    public List<Student> queryAll() {
        return zjbDao.queryAll();
    }

    @Override
    public void add(Student student) {
        zjbDao.add(student);
    }

    @Override
    public void update(Student student) {
        zjbDao.update(student);
    }

    @Override
    public void delete(Integer id) {
        zjbDao.delete(id);
    }
}
